@extends('default.layouts.adminPublic')
@section('title', '修改分类管理')

@section('content')
        <!--导航开始-->
<div class="crumb_warp">
    <i class="fa fa-home"></i> <a href="{{url('admin/coll_option')}}">首页</a> &raquo; 分类管理
</div>
<!--导航结束-->
<!--结果集标题与导航组件 开始-->

<div class="con">
    <div class="manage">
        @if(count($errors)>0)
            <div class="mark">
                @if(is_object($errors))
                    @foreach($errors->all() as $error)
                        <p>{{$error}}</p>
                    @endforeach
                @else
                    <p>{{$errors}}</p>
                @endif
            </div>
        @endif
    </div>
    <div class="conMain">
        <div class="result_wrap">
            <div class="cTitle">添加分类管理</div>
            <div class="cContent">
                <span><a href="{{url('admin/coll_category/create')}}"><i class="fa fa-plus"></i>添加管理</a></span>
                <span><a href="{{url('admin/coll_category')}}"><i class="fa fa-recycle"></i>管理列表</a></span>
            </div>
        </div>

        <div class="conInfo">
            <div class="conAddList">
                <form action="{{url('admin/coll_category/'.$collCategoryData->id)}}" method="post"
                      onsubmit="return checkForm('#cateForm')"
                      name="cateForm" id="cateForm">
                    <input type="hidden" name="_method" value="put">
                    <input type="hidden" name="id" value="{{$collCategoryData->id}}">
                    {{csrf_field()}}
                    <dl>
                        <dt><i class="require">*</i>分类名称：</dt>
                        <dd><input type="text" class="inpText" value="{{ $collCategoryData->cate_name }}"
                                   name="cate_name" id="cate_name"></dd>
                    </dl>
                    <dl>
                        <dt><i class="require">*</i>分类标识：</dt>
                        <dd><input type="text" class="inpText" name="sign" value="{{ $collCategoryData->sign }}"
                                   id="sign"></dd>
                    </dl>
                    <dl>
                        <dt></dt>
                        <dd>
                            <input type="submit" class="sub" value="提交">
                            <input type="button" class="sub but" onclick="history.go(-1)" value="返回">
                        </dd>
                    </dl>
                </form>
            </div>
        </div>
    </div>
</div>
<!--结果集标题与导航组件 结束-->
@endsection

